package com.xcw.util;

import com.alibaba.druid.sql.visitor.functions.Char;
import lombok.ToString;

import java.util.*;
import java.util.function.Consumer;

/**
 * @Author bhx
 * @Date 2022/7/13 2:55
 * @Description TODO
 */
public class Arrays_ {
    public static void main(String[] args) {
//        Arrays.asList();
//        System.out.println("---- " + Arrays.equals(list.stream().toArray(), list1.stream().toArray()));
        TreeSet treeSet = new TreeSet();
        treeSet.add(new Person("zsd"));
        treeSet.forEach(new Consumer() {
            @Override
            public void accept(Object o) {

            }
        });
        System.out.println(treeSet);
//        TreeSet<Person> treeMap = new TreeSet<>();
//        treeMap.add(new Person());
//        System.out.println(treeMap);


//        Char[] chars = new Char[100];
//        String a = "1,223,213,12";
//        String join = a.join(",","1,223,213,12","www");
//        System.out.println(join);
//        List<Char> chars1 = Arrays.asList(chars);
    }


}
@ToString
class Person implements Comparable{
    private String name;

    public Person(String name) {
        this.name = name;
    }

    @Override
    public int compareTo(Object o) {
        return 0;
    }
}
